package cn.zt.controller;

import cn.zt.common.Result;
import cn.zt.service.TProductDetailsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: 反正路也要一个人走
 * @author: Mr.Mao
 * @create: 2024-09-04 18:48
 **/
@RestController
@RequestMapping("/details")
public class DetailsController {

    @Resource
    private TProductDetailsService productDetailsService;

    /**
     * 理财详情信息
     * 更具name进行查询
     */
    @GetMapping("/getOne")
    public Result getOneDetails(@RequestParam("name") String name){
        Result result = productDetailsService.getOneDetails(name);
        return result ;
    }
}
